package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * GroupDTO entity. @author MyEclipse Persistence Tools
 */

public class GroupDTO extends java.lang.Object implements IsSerializable {


    // Fields    

     private long id;
     private SemestersYearGroupsDTO semestersYearGroup;
     private String name;
     private Integer studentsNumber;
     private Integer scheduleProgress;


    // Constructors

    /** default constructor */
    public GroupDTO() {
    }

    
    /** full constructor */
    public GroupDTO(SemestersYearGroupsDTO semestersYearGroups, String name, Integer studentsNumber, Integer scheduleProgress) {
        this.semestersYearGroup = semestersYearGroups;
        this.name = name;
        this.studentsNumber = studentsNumber;
        this.scheduleProgress = scheduleProgress;
    }

    
    // Property accessors

	public long getId() {
		return id;
	}


	public String getName() {
		return name;
	}


	public Integer getStudentsNumber() {
		return studentsNumber;
	}


	public void setId(long id) {
		this.id = id;
	}


	public SemestersYearGroupsDTO getSemestersYearGroup() {
		return semestersYearGroup;
	}


	public void setSemestersYearGroup(SemestersYearGroupsDTO semestersYearGroup) {
		this.semestersYearGroup = semestersYearGroup;
	}


	public void setName(String name) {
		this.name = name;
	}


	public void setStudentsNumber(Integer studentsNumber) {
		this.studentsNumber = studentsNumber;
	}



	public String toLabel() {
		String r;
		r = "" + name + " [" + studentsNumber + "] " + getSemestersYearGroup().toLabel();
		return r;
	}


	public Integer getScheduleProgress() {
		return scheduleProgress;
	}


	public void setScheduleProgress(Integer scheduleProgress) {
		this.scheduleProgress = scheduleProgress;
	}



	public String toString() {
		String r;
		r = "" + name + " [" + studentsNumber + "] " + getSemestersYearGroup().toLabel() + ", prog: " + scheduleProgress;
		return r;
	}



}